using System;
using System.Collections;
using System.Text;

namespace org.ngwt.user.client.rpc.core.System.Collections
{
    public class ArrayList_CustomFieldSerializer
    {
        public static void deserialize(SerializationStreamReader streamReader,ArrayList instance)
        {
          int size = streamReader.readInt();
          for (int i = 0; i < size; ++i) {
            Object obj = streamReader.readObject();
            instance.Add(obj);
          }
        }

        public static void serialize(SerializationStreamWriter streamWriter,ArrayList instance)
        {
          int size = instance.Count;
          streamWriter.writeInt(size);
          foreach (Object obj in instance) {
            streamWriter.writeObject(obj);
          }
        }
    }
}
